// $codepro.audit.disable
package edu.gatech.oad.cyberdoc.view;
import javax.swing.JPanel;
import javax.swing.JSplitPane;
import javax.swing.JButton;
import java.awt.Component;
import javax.swing.Box;
import java.awt.Color;
import java.awt.FlowLayout;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.SystemColor;
import javax.swing.JTextField;
import java.awt.Insets;
import java.awt.GridLayout;
import net.miginfocom.swing.MigLayout;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
import javax.swing.JTextPane;
import javax.swing.JComboBox;
import javax.swing.JList;
import javax.swing.UIManager;

import org.json.JSONObject;
import javax.swing.AbstractListModel;


public class InfoPanel extends ApplicationPanel {

	/**
	 * Create the panel.
	 */
	public InfoPanel() {
		setLayout(null);
		
		JLabel lblYourInformation = new JLabel("Your Information");
		lblYourInformation.setBounds(10, 11, 96, 27);
		add(lblYourInformation);
		
		JList list = new JList();
		list.setModel(new AbstractListModel() {
			String[] values = new String[] {"Name:\t   \t\tBob", "Password:   \t\t123", "", "Age:\t   \t\t25", "Height:\t   \t\t5'10\"", "Weight:\t   \t\t190 lbs", "Gender:\t   \t\tMale", "", "", "Address:   \t\t1000 Peachtree Street", "\t\t\t\tAtlanta, GA 30332", "Phone:   \t\t\t770-555-1234", "E-mail:   \t\t\tbob@gatech.edu", ""};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		list.setBounds(24, 97, 250, 268);
		add(list);
		
		JList list_1 = new JList();
		list_1.setModel(new AbstractListModel() {
			String[] values = new String[] {"Allergies:    Penicillin", "Pharmacy:   Stamps Health", "Insurance:    Progressive", "", "", "", "Notes:  Mother had cancer"};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		list_1.setBounds(323, 97, 250, 268);
		add(list_1);
		
		JLabel lblPersonal = new JLabel("Personal");
		lblPersonal.setBounds(24, 72, 154, 14);
		add(lblPersonal);
		
		JLabel lblMedical = new JLabel("Medical");
		lblMedical.setBounds(324, 72, 125, 14);
		add(lblMedical);
		
		
		
	}

	@Override
	public void show(JSONObject response) {
		// TODO Auto-generated method stub
		
	}
}
